package com.sum.tea.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.sum.tea.R
import com.sum.tea.bean.TagItem

class TagAdapter : BaseQuickAdapter<TagItem, BaseViewHolder>(R.layout.table_row) {

    override fun convert(holder: BaseViewHolder, item: TagItem) {
        holder.apply {
            setText(R.id.cell1, item.serialNumber)
            setText(R.id.cell2, item.epc)
            setText(R.id.cell5, item.tid)
            setText(R.id.cell3, item.count.toString())
            setText(R.id.cell4, item.rssi)
        }
    }
}